<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%
	response.setContentType("text/xml");
%>

<studentdata>

<c:forEach var="CourseList" items="${courseList}">
<student>
<course_code><c:out value="${CourseList.courseCode}"/></course_code>
<course_name><c:out value="${CourseList.courseName}"/></course_name>
<credits><c:out value="${CourseList.credits}"/></credits>
<course_type><c:out value="${CourseList.courseType}"/></course_type>
</student>

</c:forEach>
</studentdata>